<?php 
$image = $this->image;
$type = $image->getType();
$config = 'resource_config_' . strtolower($type->getKey());
$config = new $config();

echo '<div style="float:left;width:200px;padding:12px;">';
echo '<div class="image largeimage">';
echo '<span class="preview"><a href="' . $image->getLarge(false) . '" target="_blank">';
echo '<img src="' . $image->getThumb(false) . '" />';
echo '</a></span>';
if($this->edit) {
	echo '<div class="clear"></div>';
	echo '<div style="font-size:10pt;font-weight:bold;padding:5px 0 3px 0;">';
	echo '<input type="checkbox" name="deleteResource" id="deleteResource" value="1" />';
	echo '<label for="deleteResource" class="for-checkbox">' . $this->language('Delete Image') . '</label>';
	echo '</div>';
}
echo '</div>';
echo '<div class="clear"></div>';
echo '<input type="file" name="' . $this->name . '" id="' . $this->name . '" />';
echo '<code>' . $this->language("Only supports for") . ': <strong>' . strtoupper(implode(',', $config->getExtensions())) . '</strong></code>';
echo '<div class="clear"></div>';
echo '</div>';
$watermarkOptions = isset($this->watermarkOptions) ? $this->watermarkOptions : true;
if($watermarkOptions) {
	echo '<div style="float:left;width:480px;">';
	echo $this->render('picture/_inc/watermarkOptions.phtml');
	echo '</div>';
}
?>